package com.softline.documentsmall.dao;

import com.softline.documentsmall.entity.EntryDetailsLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EntryDetailsLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(EntryDetailsLog record);

    int insertSelective(EntryDetailsLog record);

    EntryDetailsLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EntryDetailsLog record);

    int updateByPrimaryKey(EntryDetailsLog record);

    /**
     * 根据术语ID查询
     *
     * @param dictionaryId
     * @param language
     * @return
     */
    Integer selectUpdateCount(@Param("dictionaryId") Integer dictionaryId, @Param("language") String language);

    /**
     * 根据当前页和一页几条查询列表
     *
     * @param page 当前页
     * @param size 一页几条
     * @return
     */
    List<EntryDetailsLog> findByParams(@Param("page") Integer page, @Param("size") Integer size, @Param("language") String language);

    /**
     * 查询表总数
     *
     * @return
     */
    Long selectCount(@Param("language") String language);
}
